package com.gxuwz.stats.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxuwz.stats.entity.AcademicWork;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface AcademicWorkMapper extends BaseMapper<AcademicWork> {
    /**
     * 二级管理员获取带有用户信息的学术作品列表并进行分页
     * @param page 分页对象
     * @param wrapper 查询包装器
     * @return 分页结果
     */
    Page<AcademicWork> getAWListWithUserToAdminInfo(IPage<AcademicWork> page,
                                                    @Param(Constants.WRAPPER) QueryWrapper<AcademicWork> wrapper);

}
